package com.up.interview.seata;

import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author: liuchengjun
 * @title: ShiWu
 * @projectName: 海联技术中台V2.0
 * @depart 软件事业部
 * @description:
 * @date: 2025/10/21/周二 14:52 (星期二)
 * @since V2.0
 */
public class ShiWu {

    /**
     * 传播行为:事务嵌套后的事务行为，A调用B     1.合并事务     2.创建新的事务，互不干扰   3.父子事务  子依赖父，父回滚提交则子同样
     * 隔离级别
     * 超时时间
     */
    @Transactional(rollbackFor = Exception.class
            ,propagation = Propagation.REQUIRED, isolation = Isolation.DEFAULT,timeout = 10000)
    public void add(){

    }
}
